package androidx.fragment.app;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import androidx.core.app.a;
import b.f.k.h;

public abstract class j<E> extends f {

    /* renamed from: b  reason: collision with root package name */
    private final Activity f620b;

    /* renamed from: c  reason: collision with root package name */
    private final Context f621c;

    /* renamed from: d  reason: collision with root package name */
    private final Handler f622d;
    final m e;

    j(Activity activity, Context context, Handler handler, int i) {
        this.e = new n();
        this.f620b = activity;
        h.d(context, "context == null");
        this.f621c = context;
        h.d(handler, "handler == null");
        this.f622d = handler;
    }

    j(d dVar) {
        this(dVar, dVar, new Handler(), 0);
    }

    public View c(int i) {
        return null;
    }

    public boolean d() {
        return true;
    }

    /* access modifiers changed from: package-private */
    public Activity e() {
        return this.f620b;
    }

    /* access modifiers changed from: package-private */
    public Context f() {
        return this.f621c;
    }

    /* access modifiers changed from: package-private */
    public Handler g() {
        return this.f622d;
    }

    /* access modifiers changed from: package-private */
    public void h(Fragment fragment) {
    }

    public abstract E i();

    public LayoutInflater j() {
        return LayoutInflater.from(this.f621c);
    }

    public void k(Fragment fragment, String[] strArr, int i) {
    }

    public boolean l(Fragment fragment) {
        return true;
    }

    public boolean m(String str) {
        return false;
    }

    public void n(Fragment fragment, @SuppressLint({"UnknownNullness"}) Intent intent, int i, Bundle bundle) {
        if (i == -1) {
            this.f621c.startActivity(intent);
            return;
        }
        throw new IllegalStateException("Starting activity with a requestCode requires a FragmentActivity host");
    }

    public void o(Fragment fragment, @SuppressLint({"UnknownNullness"}) IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) {
        if (i == -1) {
            a.l(this.f620b, intentSender, i, intent, i2, i3, i4, bundle);
        } else {
            throw new IllegalStateException("Starting intent sender with a requestCode requires a FragmentActivity host");
        }
    }

    public void p() {
    }
}
